import axios from '@/router/axios'

export function getClasses (query = {}) {
  return axios.get('/api/root/classes/list', {
    params: query
  })
}

export function delClasses (id) {
  return axios.post('/api/root/classes/del', id)
}

export function addClasses (formData) {
  return axios.post('/api/root/classes/add', formData)
}

export function updClasses (formData) {
  return axios.post('/api/root/classes/upd', formData)
}

export function getClassList (query = {}) {
  return axios.get('/api/root/classes/classlist', {
    params: query
  })
}
